LOCAL_PATH:=$(call my-dir)

# Link to libXau
include $(CLEAR_VARS)
LOCAL_MODULE := libXau
LOCAL_SRC_FILES := ../../$(LOCAL_MODULE)/libs/$(TARGET_ARCH_ABI)/$(LOCAL_MODULE).so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../$(LOCAL_MODULE)/include
include $(PREBUILT_SHARED_LIBRARY)

# Now build the stuff
include $(CLEAR_VARS)

LOCAL_MODULE:=libX11

LOCAL_SRC_FILES := \
	xlibi18n/XDefaultIMIF.c \
	xlibi18n/XDefaultOMIF.c \
	xlibi18n/xim_trans.c\
	xlibi18n/ICWrap.c\
	xlibi18n/IMWrap.c\
	xlibi18n/imKStoUCS.c\
	xlibi18n/lcCT.c\
	xlibi18n/lcCharSet.c\
	xlibi18n/lcConv.c\
	xlibi18n/lcDB.c\
	xlibi18n/lcDynamic.c\
	xlibi18n/lcFile.c\
	xlibi18n/lcGeneric.c\
	xlibi18n/lcInit.c\
	xlibi18n/lcPrTxt.c\
	xlibi18n/lcPubWrap.c\
	xlibi18n/lcPublic.c\
	xlibi18n/lcRM.c\
	xlibi18n/lcStd.c\
	xlibi18n/lcTxtPr.c\
	xlibi18n/lcUTF8.c\
	xlibi18n/lcUtil.c\
	xlibi18n/lcWrap.c\
	xlibi18n/mbWMProps.c\
	xlibi18n/mbWrap.c\
	xlibi18n/utf8WMProps.c\
	xlibi18n/utf8Wrap.c\
	xlibi18n/wcWrap.c\
	modules/lc/gen/lcGenConv.c \
	modules/lc/def/lcDefConv.c \
	modules/lc/Utf8/lcUTF8Load.c \
	modules/lc/xlocale/lcEuc.c \
	modules/lc/xlocale/lcJis.c \
	modules/lc/xlocale/lcSjis.c \
	modules/om/generic/omGeneric.c \
	modules/om/generic/omDefault.c \
	modules/om/generic/omImText.c \
	modules/om/generic/omText.c \
	modules/om/generic/omTextEsc.c \
	modules/om/generic/omTextExt.c \
	modules/om/generic/omTextPer.c \
	modules/om/generic/omXChar.c \
	modules/im/ximcp/imCallbk.c \
	modules/im/ximcp/imDefFlt.c \
	modules/im/ximcp/imDefIc.c \
	modules/im/ximcp/imDefIm.c \
	modules/im/ximcp/imDefLkup.c \
	modules/im/ximcp/imDispch.c \
	modules/im/ximcp/imEvToWire.c \
	modules/im/ximcp/imExten.c \
	modules/im/ximcp/imImSw.c \
	modules/im/ximcp/imInsClbk.c \
	modules/im/ximcp/imInt.c \
	modules/im/ximcp/imLcFlt.c \
	modules/im/ximcp/imLcGIc.c \
	modules/im/ximcp/imLcIc.c \
	modules/im/ximcp/imLcIm.c \
	modules/im/ximcp/imLcLkup.c \
	modules/im/ximcp/imLcPrs.c \
	modules/im/ximcp/imLcSIc.c \
	modules/im/ximcp/imRmAttr.c \
	modules/im/ximcp/imRm.c \
	modules/im/ximcp/imThaiFlt.c \
	modules/im/ximcp/imThaiIc.c \
	modules/im/ximcp/imThaiIm.c \
	modules/im/ximcp/imTrans.c \
	modules/im/ximcp/imTransR.c \
	modules/im/ximcp/imTrX.c \
	AllowEv.c \
	AllPlanes.c \
	AllCells.c \
	AutoRep.c \
	Backgnd.c \
	BdrWidth.c \
	Bell.c \
	Border.c \
	ChAccCon.c \
	ChActPGb.c \
	ChClMode.c \
	ChCmap.c \
	ChGC.c \
	ChKeyCon.c \
	ChkIfEv.c \
	ChkMaskEv.c \
	ChkTypEv.c \
	ChkTypWEv.c \
	ChkWinEv.c \
	ChPntCon.c \
	ChProp.c \
	ChSaveSet.c \
	ChWAttrs.c \
	ChWindow.c \
	CirWin.c \
	CirWinDn.c \
	CirWinUp.c \
	ClDisplay.c \
	ClearArea.c \
	Clear.c \
	ConfWind.c \
	Context.c \
	ConvSel.c \
	CopyArea.c \
	CopyCmap.c \
	CopyGC.c \
	CopyPlane.c \
	CrBFData.c \
	CrCmap.c \
	CrCursor.c \
	CrGC.c \
	CrGlCur.c \
	CrPFBData.c \
	CrPixmap.c \
	CrWindow.c \
	Cursor.c \
	DefCursor.c \
	DelProp.c \
	Depths.c \
	DestSubs.c \
	DestWind.c \
	DisName.c \
	DrArc.c \
	DrArcs.c \
	DrLine.c \
	DrLines.c \
	DrPoint.c \
	DrPoints.c \
	DrRect.c \
	DrRects.c \
	DrSegs.c \
	ErrDes.c \
	ErrHndlr.c \
	evtomask.c \
	EvToWire.c \
	FetchName.c \
	FillArc.c \
	FillArcs.c \
	FillPoly.c \
	FillRct.c \
	FillRcts.c \
	FilterEv.c \
	Flush.c \
	Font.c \
	FontInfo.c \
	FontNames.c \
	FreeCmap.c \
	FreeCols.c \
	FreeCurs.c \
	FreeEData.c \
	FreeEventData.c \
	FreeGC.c \
	FreePix.c \
	FSSaver.c \
	FSWrap.c \
	GCMisc.c \
	Geom.c \
	GetAtomNm.c \
	GetColor.c \
	GetDflt.c \
	GetEventData.c \
	GetFPath.c \
	GetFProp.c \
	GetGCVals.c \
	GetGeom.c \
	GetHColor.c \
	GetHints.c \
	GetIFocus.c \
	GetImage.c \
	GetKCnt.c \
	GetMoEv.c \
	GetNrmHint.c \
	GetPCnt.c \
	GetPntMap.c \
	GetProp.c \
	GetRGBCMap.c \
	GetSOwner.c \
	GetSSaver.c \
	GetStCmap.c \
	GetTxtProp.c \
	GetWAttrs.c \
	GetWMCMapW.c \
	GetWMProto.c \
	globals.c \
	GrButton.c \
	GrKeybd.c \
	GrKey.c \
	GrPointer.c \
	GrServer.c \
	Host.c \
	Iconify.c \
	IfEvent.c \
	imConv.c \
	ImText16.c \
	ImText.c \
	ImUtil.c \
	InitExt.c \
	InsCmap.c \
	IntAtom.c \
	KeyBind.c \
	KeysymStr.c \
	KillCl.c \
	LiHosts.c \
	LiICmaps.c \
	LiProps.c \
	ListExt.c \
	LoadFont.c \
	LockDis.c \
	locking.c \
	LookupCol.c \
	LowerWin.c \
	Macros.c \
	MapRaised.c \
	MapSubs.c \
	MapWindow.c \
	MaskEvent.c \
	Misc.c \
	ModMap.c \
	MoveWin.c \
	NextEvent.c \
	OCWrap.c \
	OMWrap.c \
	OpenDis.c \
	ParseCmd.c \
	ParseCol.c \
	ParseGeom.c \
	PeekEvent.c \
	PeekIfEv.c \
	Pending.c \
	PixFormats.c \
	PmapBgnd.c \
	PmapBord.c \
	PolyReg.c \
	PolyTxt16.c \
	PolyTxt.c \
	PropAlloc.c \
	PutBEvent.c \
	PutImage.c \
	Quarks.c \
	QuBest.c \
	QuColor.c \
	QuColors.c \
	QuCurShp.c \
	QuExt.c \
	QuKeybd.c \
	QuPntr.c \
	QuStipShp.c \
	QuTextE16.c \
	QuTextExt.c \
	QuTileShp.c \
	QuTree.c \
	RaiseWin.c \
	RdBitF.c \
	RecolorC.c \
	ReconfWin.c \
	ReconfWM.c \
	Region.c \
	RegstFlt.c \
	RepWindow.c \
	RestackWs.c \
	RotProp.c \
	ScrResStr.c \
	SelInput.c \
	SendEvent.c \
	SetBack.c \
	SetClMask.c \
	SetClOrig.c \
	SetCRects.c \
	SetDashes.c \
	SetFont.c \
	SetFore.c \
	SetFPath.c \
	SetFunc.c \
	SetHints.c \
	SetIFocus.c \
	SetLocale.c \
	SetLStyle.c \
	SetNrmHint.c \
	SetPMask.c \
	SetPntMap.c \
	SetRGBCMap.c \
	SetSOwner.c \
	SetSSaver.c \
	SetState.c \
	SetStCmap.c \
	SetStip.c \
	SetTile.c \
	SetTSOrig.c \
	SetTxtProp.c \
	SetWMCMapW.c \
	SetWMProto.c \
	StBytes.c \
	StColor.c \
	StColors.c \
	StName.c \
	StNColor.c \
	StrKeysym.c \
	StrToText.c \
	Sync.c \
	Synchro.c \
	Text16.c \
	Text.c \
	TextExt16.c \
	TextExt.c \
	TextToStr.c \
	TrCoords.c \
	UndefCurs.c \
	UngrabBut.c \
	UngrabKbd.c \
	UngrabKey.c \
	UngrabPtr.c \
	UngrabSvr.c \
	UninsCmap.c \
	UnldFont.c \
	UnmapSubs.c \
	UnmapWin.c \
	VisUtil.c \
	WarpPtr.c \
	Window.c \
	WinEvent.c \
	Withdraw.c \
	WMGeom.c \
	WMProps.c \
	WrBitF.c \
	XlibAsync.c \
	XlibInt.c \
	Xrm.c  \
	ConnDis.c \
	x11_trans.c


LOCAL_SHARED_LIBRARIES:=\
	libXau

include libX11.mk

LOCAL_C_INCLUDES += \
	include/X11 \
	include/X11R6/include/X11 \
	jni \
	jni/xcms \
	jni/xkb \
	jni/xlibi18n

LOCAL_CFLAGS += \
	-DXK_BRAILLE \
	-DX_LOCALE \
	-DXTRANSDEBUG=5

include $(BUILD_SHARED_LIBRARY)
